package com.zking.ssm.NH.service.impl;

import com.zking.ssm.NH.mapper.tbUserMapper;
import com.zking.ssm.NH.model.tbUser;
import com.zking.ssm.NH.service.ITbUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author NH
 * @Date 2021/1/20/0020 19:16
 */

@Service
public class TbUserServiceImpl implements ITbUserService {

    @Autowired
    private tbUserMapper tbUserMapper;

    @Override
    public tbUser selectAdmin(tbUser tbUser) {
        return tbUserMapper.selectAdmin(tbUser.getUsername());
    }
}
